#ifndef __UPDATE__H__
#define __UPDATE__H__

#include "config.h"

#include "bsp_laser.h"

typedef struct 
{
    /* data:laser */
    uint8_t         target_count;           //目标个数
    uint16_t        first_distance;         //首目标
    uint16_t        end_distance;           //末目标
    uint8_t         light_emission_count;   //发射激光次数
    uint8_t         measure_status;         //状态
    pthread_mutex_t lock;  // 保护共享数据的锁
    pthread_cond_t  cond;  // 用于线程间同步的条件变量
}Update_t;
extern Update_t glb_data;

typedef struct 
{
    /* data */
    int mcu_fd;
    int laser_fd;
    int ir_fd;
    int vis_fd;
}Bsp_Global_fd;


#endif